
<div class="loginfo">
  <div id="auto">
  {{$user=$session.user_info}}
  {{if !$user}}
	<div id="conbo" class="top_login"> 
      <span>用户名：</span>
      <input type="text" name="email"/>
      <span>密码：</span>
      <input type="password" name="passwd"/>
      <input type="hidden" name="field" value='user_name'/>
      <a class="pointer topa" onclick="Main.login('.top_login')">登录</a><a class="padding-both" href="main.php?act=user&user_act=register">注册</a>
      <a class="padding-both" href="main.php?act=reset_passwd">忘记密码?</a>
      <a class="padding-both" href="main.php?act=software" target="_blank">帮助中心</a>
   </div>
  {{else}}
   <div id="conbo"> 
      <!--<div class="memimg"><img src="{{$user.avater}}" width="87" height="96"/></div>-->
      <span class="welcome">欢迎您：<strong>{{$user.user_name}}</strong> 
      <em onclick="location.href='main.php?act=user&user_act=register&user_id={{$user.user_id}}'" class="pointer">修改</em>
      <em onclick="location.href='main.php?act=log_out'" class="pointer">退出</em>
      </span>
      <a class="right topa" href="main.php?act=software" target="_blank">帮助中心</a>
      <ul class="topnavaga">
      
         {{if $user.cat_id}}
          <li><a class="topa" href="category.php?cat_id={{$user.cat_id}}">我的小店</a>
             <div>
              {{if $user.mag}}
                 <a  href="main.php?act=user&user_act=steps_a&c_id={{$user.cat_id}}">修改小店</a>
                 <a  href="main.php?act=goods_edit&c_id={{$user.cat_id}}" title="添加新产品，有金币赠送哦！">添加产品</a>
                 <a  href="category.php?cat_id={{$smarty.const.JF_MALL_ID}}" target="_blank">积分商城</a>
              {{/if}}
        {{else}} 
        {{/if}}
              </div>
          </li>    
        
       </ul>
     
       <ul class="topnavaga">
       
       <li><a class="topa" href="#">我的账号</a>
       <div>
       <a href="main.php?act=user&user_act=steps_a" title="开店有惊喜，配送启动资金哦！">我要开店</a>
       {{if $user.status==1}}
       <a href="main.php?act=user&user_act=user_order">我的订单</a>
       <a href="main.php?act=gold&type=user">我的青币</a>  
       {{/if}}
       </div>
       </li>
       </ul>

   </div>
  {{/if}}
 
  </div>
</div>
<div id="headcon">
    <div id="auto">
      <div id="conbo">
          <div class="left">
          		<a href="./"><img src="{{$t_path}}/images/headlogo.png" usermap="Map" title="首页"/></a>
               
          </div>
          <!--left end-->
          
          <div class="numbercount">
          		<dl>
                    <dt>我们已有</dt>
                    <dd><span>{{$counts.format.cat_count}}</span><em>个小店</em></dd>
                    <dd><span>{{$counts.format.goods_count}}</span><em>套产品</em></dd>
                    <dd><span>{{$counts.format.user_count}}</span><em>位用户</em></dd>
                </dl>
          </div>
      </div>
   </div>
</div>
<!--headcon end-->